//package com.woniuxy.config;
//
//import com.alibaba.druid.pool.DruidDataSource;
//import io.seata.rm.datasource.DataSourceProxy;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.context.annotation.Primary;
//
///**
// * @Author: 马宇航
// * @Description: seata需要用的分布式事务配置
// * @DateTime: 22/10/17/0017 17:55
// * @Component: 成都蜗牛学苑
// **/
//@Configuration
//public class DataSourceProxyConfig {
//    @Primary
//    @Bean
//    @ConfigurationProperties(prefix = "spring.datasource")
//    public DruidDataSource druidDataSource(){
//        return new DruidDataSource();
//    }
//    @Bean
//    public DataSourceProxy dataSource(DruidDataSource dataSource){
//        return new DataSourceProxy(dataSource);
//    }
//}
